﻿ALTER TABLE dbo.TPW_WF_ACTIVITY ADD CONSTRAINT FK_TPW_WF_ACTIVITY_SN1 FOREIGN KEY (ACTIVITY, END_STATE_NAME) REFERENCES dbo.TPW_WF_STATE (ACTIVITY, STATE_NAME);
